from django.contrib import admin
from djambe.wiki.models import Tag, History, Lock

class TagAdmin(admin.ModelAdmin):
  pass

admin.site.register(Tag, TagAdmin)


class HistoryAdmin(admin.ModelAdmin):
  date_hierarchy = 'updated'

admin.site.register(History, HistoryAdmin)


class LockAdmin(admin.ModelAdmin):
  date_hierarchy = 'when_locked'
  list_display = ('page', 'author', 'when_locked')
  ordering = ('-when_locked',)

admin.site.register(Lock, LockAdmin)
